package n07.first;

public class F02 {

	public static void main(String[] args) {
		Computable[] objs= { 
				new Cylinder(10, 10),
				new Cylinder(10, 5),
				new Text("你好，zhangsan")
		};
		for (Computable obj : objs) {
			String message = obj.getResult();
			System.out.println(message);
		}
	}

}
